package com.sporadic.backstage.service.serviceImpl;

import com.sporadic.backstage.entity.DiningArea;
import com.sporadic.backstage.mapper.DiningAreaMapper;
import com.sporadic.backstage.service.DiningAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiningAreaServiceImpl implements DiningAreaService {

    @Autowired
    private DiningAreaMapper diningAreaMapper;


    @Override
    public List<DiningArea> findDiningAreaAll(Integer merchantId) {
        return diningAreaMapper.findDiningAreaAll(merchantId);
    }

    @Override
    public int insertDiningArea(DiningArea diningArea) {
        return diningAreaMapper.insertDiningArea(diningArea);
    }

    @Override
    public int removeDiningArea(Integer id) {
        return diningAreaMapper.removeDiningArea(id);
    }

    @Override
    public int modifyDiningArea(DiningArea diningArea) {
        return diningAreaMapper.modifyDiningArea(diningArea);
    }
}
